﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UnitRelation.aspx.cs" Inherits="NewCode_Units_UnitRelation" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../../css/page.css" rel="stylesheet" type="text/css" />
    <link href="../../css/default/easyui.css" rel="stylesheet" />
    <script src="../../ScriptFile/jquery.js"></script>
    <script src="../../ScriptFile/jquery.easyui.min.js"></script>
    <style type="text/css">
        
    </style>
</head>
<body>
    <script type="text/javascript">
        //打开内嵌网页的通用方法1（window）
        function openDivDlg(strTitle, id, orgType) {
            var divWidth = 770;
            var divHeight = 380;
            $('#dlgConfig').window({
                title: strTitle, width: divWidth, height: divHeight,
                collapsible: false, maximizable: true, maximized: false,
                left: ($(window).width() - divWidth) / 2,
                top: ($(window).height() - divHeight) / 2,
                onClose: function () {

                }
            });
            $.ajax({
                type: "POST",
                url: "UnitRelation.aspx/GetIID",
                data: "{id:'" + id + "',oraType:'" + orgType + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    var iid = data.d;
                    var formId = "<%=FormId %>";
                    var strUrl = '<%=NetoWsPath%>' + "?readonly=false&FormName=" + formId + "&unitsid=" + id + "&iid=" + iid + "&orgType=" + orgType;
                    $('#iframeConfig').attr("src", strUrl);
                    $('#dlgConfig').window('open');
                },
                error: function (err) {
                    alert(err);
                }
            });

        }

        function closeDivDlg() {
            $('#dlgConfig').window('close');
            $("#btnSearch").click();
        }

        $(function () {
            $("#divMain").css("height", $(document).height());
        });
    </script>
    <form id="form1" runat="server">
        <div id="divMain">
            <div style="text-align: center;padding:10px;">
                单位名称:<asp:TextBox ID="txtOraName" runat="server"></asp:TextBox>
                组织机构代码:<asp:TextBox ID="txtOraCode" runat="server"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnSearch" runat="server" Text="查 询" OnClick="btnSearch_Click" />
            </div>
            <controlDefine:CustomGridView runat="server" ID="gv" SkinID="List" AutoGenerateColumns="false"
                ShowItemNumber="true" OnOnLoadData="gv_OnLoadData" ShowHideColModel="None"
                AllowPaging="true" OnRowDataBound="gv_RowDataBound" DataKeyNames="id,isglzl,isglzmdw">
                <Columns>
                    <asp:BoundField DataField="unitsname" HeaderText="单位名称" />
                    <asp:BoundField DataField="unitstel" HeaderText="单位电话" />
                    <asp:BoundField DataField="unitsaddress" HeaderText="单位地址" />
                    <asp:BoundField DataField="postcode" HeaderText="邮政编号" />
                    <asp:BoundField DataField="organization" HeaderText="组织机构代码" />
                    <asp:BoundField DataField="tyshxydm" HeaderText="统一社会信用代码" />
                    <asp:BoundField DataField="sfglyh" HeaderText="是否有关联用户" />
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="linkBtnzlgl" runat="server"></asp:LinkButton>
                            <asp:LinkButton ID="linkBtnzmdw" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </controlDefine:CustomGridView>
            <div id="dlgConfig" class="easyui-window" title="信息查看" closed="true" modal="true"
                minimizable="false" style="background: #fafafa; overflow: hidden;">
                <iframe id="iframeConfig" scrolling="no" frameborder="0" src="" style="width: 100%; height: 100%;"></iframe>
            </div>
        </div>
    </form>
</body>
</html>
